package com.qf.shopping.mapper;

import com.qf.shopping.pojo.message.Message;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/*
    消息
 */

public interface IMessageMapper {

    //新增
    void addMessage(Message message);
    //时间查询
    List<Message> findMessageByTime(Map<String,Object> map);
    //查看
    List<Message> findMessageByAll();
    // 编辑
    void updateMessage(Message message);
    //删除
     void deleteMessage(long id);

    Message findMessageById(long id);
}
